/************************************************/
/************************************************/
/**** PART 3.2: APPENDIX FIGURE 2 & 3 ****/
/************************************************/
/************************************************/

	preserve 

	collapse (max) bcoleman_ref*  maleshare biat_ethnic baseline_tmale baseline_tage baseline_texperience tmarried baseline_tchildnum ttenured bteyes_sd btraven_sd b_pedagogy b_gms b_idealism b_competence b_modern b_extrinsic b_warmth csize gr1 gr2 grade1 b_schoolid b_classid baseline_tterm urfa refshare b_districtid btsurvey_16_refprop sample1 sample0 bexper empathy_treatment ref_exposure (mean) male ageinm braven_sd bmath_std bturk_std, by(btname)

	** Distributions of Standardized Teacher Varaibles - IAT ethnic, Cognitive Empathy, Cognitive Ability

	hist biat_ethnic if sample1==1, xtitle("Teacher's Ethnic Bias (Standardized)") graphregion(color(white)) lcolor(white) bgcolor(white) fcolor(navy) name(tethnic, replace) 
	graph export "$path1/appendix_figureA2.png", replace 

	hist bteyes_sd if sample1==1, xtitle("Teacher's Cognitive Empathy (Standardized)") graphregion(color(white)) lcolor(white) bgcolor(white) fcolor(navy) name(tempathy, replace)

	hist btraven_sd if sample1==1, xtitle("Teacher's Cognitive Ability (Standardized)") graphregion(color(white)) lcolor(white) bgcolor(white) fcolor(navy) name(traven, replace) 
	gr combine  traven tempathy, col(2) graphregion(color(white))

	graph export "$path1/appendix_figureA3.png", replace 
	
	restore	


